package com.yike.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yike.base.entity.Area;
import com.yike.base.vo.AreaTreeVo;
import com.yike.base.vo.AreaVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *  Mapper 接口
 *
 * @author Sakura
 * @since 2024-08-12
 */
@Mapper
public interface AreaMapper extends BaseMapper<Area> {

    List<AreaVo> getSubAreas(@Param("parentId") Integer parentId);

    List<AreaVo> getAreas();


}
